package xuanzhen.reservation.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import xuanzhen.reservation.dao.BlackUserMapper;
import xuanzhen.reservation.pojo.BlackUser;
import xuanzhen.reservation.pojo.PostMan;
import xuanzhen.reservation.service.BlackUserService;
@Service
public class BlackUserServiceImpl implements BlackUserService {
	@Resource
	BlackUserMapper blackUserMapper;
	@Override
	public int insertBlackUser(BlackUser blackUser) throws Exception {
		return blackUserMapper.insert(blackUser);
	}

	@Override
	public int updateBlackUser(BlackUser blackUser) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<BlackUser> queryListByEntity(BlackUser blackUser) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<BlackUser> queryListByMap(Map<String, Object> parameter) throws Exception {
		// TODO Auto-generated method stub
		return blackUserMapper.queryListByMap(parameter);
	}

	@Override
	public List<BlackUser> selectBlack(String phone) throws Exception {
		// TODO Auto-generated method stub
		return blackUserMapper.selectBlack(phone);
	}
	@Override
	public List<BlackUser> selectUserNotBlack(Map<String,Object> parameter) throws Exception {
		// TODO Auto-generated method stub
		return blackUserMapper.selectUserNotBlack(parameter);
	}
	@Override
	public int deleteByPrimaryKey(int id) throws Exception {
		// TODO Auto-generated method stub
		return blackUserMapper.deleteByPrimaryKey(id);
	}
	

}
